package cn.com.thinvent.dispatch.dao;

import cn.com.thinvent.dispatch.dao.base.BaseMapper;
import cn.com.thinvent.dispatch.entity.ModelResult;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ModelResultMapper extends BaseMapper<ModelResult> {

    Integer deleteById(@Param("id") Integer id);

    List<ModelResult> queryAllByLimit(@Param("taskId") Integer taskId,
                                      @Param("pageBegin") Integer pageBegin,
                                      @Param("pageSize") Integer pageSize);

    Long count(@Param("taskId") Integer taskId);

    List<ModelResult> getModelResultsByTaskId(@Param("taskId") Integer taskId);

    List<ModelResult> queryByIds(@Param("resultIds") List<Integer> resultIds);

    void deleteByTaskId(@Param("taskId") Integer taskId);
}
